/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.server.BUS;

import db.server.DAO.EditDAO;
import db.server.DTO.DesignTableDTO;

import java.util.List;

import javax.xml.parsers.ParserConfigurationException;

/**
 *
 * @author QuangKhai
 */
public class EditBUS {
    private EditDAO editDAO = new EditDAO();
    
    ///Call function from EditTableDAO to save edit table
    public void saveEditTable(List<String> lstValue, DesignTableDTO tableDTO, String fileName) throws ParserConfigurationException{
        editDAO.writeEditTable(lstValue, tableDTO, fileName);
    }
    
    ///Call function from EditTableDAO to get edit table
     public List<List<String>> readEditTable(String editPath, DesignTableDTO tableDTO){
        return editDAO.readEditTable(editPath, tableDTO).getLstValues();
    }
}
